package com.kcl.dfss.fragments;

import com.kcl.dfss.R;

import android.app.DialogFragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.Toast;

public class LoginDialogFragment extends DialogFragment {
	
	private Button dia_register,dia_login;
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
	}
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState){
		View view = inflater.inflate(R.layout.dialog, container,false);
		dia_register = (Button) view.findViewById(R.id.dia_register);
		dia_login = (Button) view.findViewById(R.id.dia_login);
		dia_register.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Toast.makeText(getActivity(), "dia_register", Toast.LENGTH_SHORT).show();
			}
		});
		
		dia_login.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Toast.makeText(getActivity(), "dia_login", Toast.LENGTH_SHORT).show();
			}
		});
		return view;
	}
	
}
